package com.yylany.pojo;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * Description: web-parent
 *
 * @author <a href="mailto:17777502615@163.com">yaoyonglong</a>
 * @date 2018/12/17
 * @since 1.0.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class TbCategory {
    /**
     * 类目id
     */
    @JsonProperty("id")
    private Integer id;

    /**
     * 类目名称
     */
    @JsonProperty("cat_name")
    private String catName;

    /**
     * 一级分类
     */
    @JsonIgnore
    private Integer cat1Id;

    /**
     * 二级分类
     */
    @JsonIgnore
    private Integer cat2Id;

}